import { RouteRecordRaw } from 'vue-router';


export const dataRouter: RouteRecordRaw = {
  path: '/data',
  name: 'data',
  component: () => import('@/layout/routerView/parent.vue'),
  redirect: '/data/jcdlsj',
  meta: {
    title: '数据汇聚',
    isLink: '',
    isHide: false,
    isKeepAlive: true,
    isAffix: false,
    isIframe: false,
    roles: ['admin'],
    icon: 'iconfont icon-xitongshezhi',
  },
  children: [
    {
      path: '/data/jcdlsj',
      name: 'jcdlsj',
      component: () => import('@/views/jcdlsj/index.vue'),
      meta: {
        title: '基础地理数据',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin'],
        icon: '',
      },
    },
    {
      path: '/data/qxjcsj',
      name: 'qxjcsj',
      component: () => import('@/views/qxjcsj/index.vue'),
      meta: {
        title: '气象监测数据',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin'],
        icon: '',
      },
    },
    {
      path: '/data/trsqsj',
      name: 'trsqsj',
      component: () => import('@/layout/routerView/parent.vue'),
      meta: {
        title: '土壤墒情数据',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin'],
        icon: '',
      },
      children: [
        {
          path: '/data/trsqsj/sbgl',
          name: 'trsqsjSbgl',
          component: () => import('@/views/trsqsj/sbgl.vue'),
          meta: {
            title: '设备管理',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin'],
            icon: '',
          },
        },
        {
          path: '/data/trsqsj/data',
          name: 'trsqsjData',
          component: () => import('@/views/trsqsj/data.vue'),
          meta: {
            title: '墒情数据',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin'],
            icon: '',
          },
        },
      ],
    },
    {
      path: '/data/gdzlsj',
      name: 'gdzlsj',
      component: () => import('@/views/gdzlsj/index.vue'),
      meta: {
        title: '耕地质量数据',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin'],
        icon: '',
      },
    },
    {
      path: '/data/ygjcsj',
      name: 'ygjcsj',
      component: () => import('@/views/ygjcsj/index.vue'),
      meta: {
        title: '遥感监测数据',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin'],
        icon: '',
      },
    },
  ],
}
